<?php
/**
 * XIE--Scorpion
 *
 * 网站配置
 * 
 */
namespace App\Models\Admin;

use DB,Session,Redirect;
use Illuminate\Database\Eloquent\Model;

class Slider extends Model
{
    
    //protected $table = 'slider_img';
	protected $table = 'slider_type';
    public $timestamps = false;

    /*
     *广告位列表
     */
    static function sliderList()
    {
    	$arr=DB::table('slider_type')->paginate(3);
    	return $arr;
    }
	/*
     *广告位是否锁定
     */
    static function sliderClick($slider_type_id)
    {
    	$arr=DB::table('slider_type')->where('slider_type_id',$slider_type_id)->get();
		foreach($arr as $v)
		{
           $slider_click=$v->slider_click;
		}
    	return $slider_click;
    }
}